<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-show 指令</title>
</head>
<body>
<div id="app">
  <h1 v-show="show" style="background-color: red">Hello, World!</h1>
  <h1 v-show="!show" style="background-color: green">Hello, World!</h1>
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup(){
              let show = true;
              // let hidden = false;
                return {
                  show
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>